package com.codemes.happylist.utils;

import javafx.scene.control.Control;

/**
 * @author nscoffee
 */
public class LocationUtil {

    private LocationUtil(){}

    public static double getScreenX(Control control){
        return control.getScene().getWindow().getX()+control.getScene().getX()+ control.localToScene(0, 0).getX();
    }
    public static double getScreenY(Control control){
        return control.getScene().getWindow().getY()+control.getScene().getY()+ control.localToScene(0, 0).getY();
    }
}
